package com.lysj.bhp.borrowing.repository;

import com.lysj.bhp.borrowing.domain.CreditFile;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface CreditFileRepository extends JpaRepository<CreditFile, Long>, JpaSpecificationExecutor {

    CreditFile findByUserIdAndWalletType(Long userId, Integer walletType);

    List<CreditFile> findByUserId(Long userId);


}
